open and close the static instance of the connection