Adding a try/catch block to try to diagnose the issue with the server starting up on the EC2 machine.