when this happens to me, I always wait untill the game finishes "loading" and the game won't crash & you'll be able to catch the pokemon. However, if you stress the game and click/push buttons, it stops running then it crash. So if you're patient it will get back to normal, sometimes you'll need to wait up to 3 minutes (longest I've waited atleast).
// kriga