Fixed issues with server not shutting down and more

Console outputs work how they should.
Server stops properly.