Added support for when the host computer goes into standby with the program still running (it works)
I don't even think anything changed here