Improvements

Improved the file loading algorithem and played with closing the server.
That did not work