Added a 1s wait in UncaughtExceptionHandlers

Since all loggers in Dropwizard are now asynchronous, the exceptions from here never get logged, as the JVM terminates before the async appender flushes the message. The 1s delay seems to be enough for the message to be sent through.