Fixed handling of mailslot read timeout to avoid compiler warnings.