Fixed the list command. Also ensure that we disconnect from the connected server on app close.