Properly (and silently) handle client disconnects
Merge pull request #1 from slonopotamus/master

Now authentication repeats until success
Merge pull request #2 from slonopotamus/client_disconnect

Properly (and silently) handle client disconnects