I had it in form of "Exception thrown in shutdown hook" and it wasn't visible in normal output, so I thought this version would be more consistent behavior. Error was problem with connection to database. Let's remove it, it shouldn't be necessary for this PR anymore.