Addressed suggested fixes, removed gServer.stop()