Fixed bug in quitting
Merge pull request #6 from psav/twisted

Fixed bug in quitting