Always close connection after executing query