kill subprocess if app crashes