try/catch to avoid crashing the server when something goes wrong