better error handling in KillableCmd