pm option added, bug fix on quit

fixes #3
bug fix for user disconnect