Close connection in disconnect method