Handle exceptions raised in Socket.IO's event handlers.