Release the connection when pinging the database