optimize handling of presence and message errors
optimize handling of muc_presence and muc_message errors