Added exception handlers on transactions on sync and in one additional with-input in simple locks.