Destroy mutex on fatal error