Replaces `uncaughtException` with `prepareStackTrace`