As for your approach: I've seen that fail for locked up apps. I believe that sends a normal quit signal instead of force terminating the app.