Fixed issue where server would not exit properly