Updated server code slightly

-Added a little double check for server closing
-Added a force quit function
-Added documentation comments