hackily shut down the actual app process and actually wait for it to die