Made exception handling in mailbox_t safer, and avoid one alloc in message handler.