Fixed broken threading after posting a message failed.