added FLAG to quit threads when true, and set FLAG to true when stop command recieved
added checks in all threads for FLAG, inorder to exit cleanly
added try except block around listen and accept, in order to continue when nothing there
Merge branch 'fix1-server-exit'