Fixed bug in client that failed to close connection with server properly, added list group functionality to commands