improve releaseMtContextAfterRun check; if set releaseMtContextAfterRun ensure only run once