Add malformed_message error handling