fixed shutdown crash when not using QServer socket