Better handle for the quit command.
Merge pull request #19 from sergio91/feature-cmd-quit

Better handle for the quit command.