A bit of Googling turned up
$^M, and a bit further Googling turned up
Is $^M a leftover April Fool?. Maybe the techniques described in the latter post could be used to give you a chance at least to
die gracefully, or possibly even to abort the calculation?