Send a newline with the QUIT command

Addresses #381
Merge branch 'hotfix/close_command'
Merge branch 'upstream/master'