Catch crashes in migrations and print the stack trace to aid in debugging.