Remove uneeded Close() that was stopping the server from shutting down.
Check both errors here