Properly close database connection on fatal error