Add a set_failmask function to Mara
Update crash handling for magnetar problem