Stability/integrity improvements

Implements fixes for issues #3, #4, and #2.
You forgot a couple of important steps:
* You'll need to set the server in a global lock (so clients aren't able to send in new requests/processes etc.)
* Then you'll need to wait for all clients to round up their work
* Then you'll need to kill all connections
* Then closing all open files (Via the tableManager)
* After all of this, the archiving.