change exit behavior so it doesn't (try to) execute a partial cmd