bug fix: message handler never returned when a message could not be processed