add try/catch to sendToAll().