dont crash when a bot throws an error during onMessage