unlock mutex on error
catch errors from mtpt()