Make the MessageHandler static to avoid leaks.