wait for os kill