Close the database connection on exception, otherwise we leak SQL connections