expose connection status, and and close the connection with close()