Refractored WatchingServer to close stream with a method. when an Exception is thrown it is printed to the console where that exception has occured