The SQL connection is now closed when it is not used.