added handling of abort return from !mat calls