Improving the bitcoin message event handler.