changed the implementation of crash detection to use RMCrashException.
added trace calls