Renamed close to disconnect to match connect function