Handle errors in IMessageHandler implementation and update tests and readme