Remove bad and unused quit() call from login
Tidy up quit handling in client
Merge pull request #33 from philipwhiuk/quitHandling

Merge branch 'quitHandling' into develop