Always close the database connection.