Added windows proper server exit