Now we exit the process only after closing the DB. (also increasing the retry delay)