transaction end moved up one level

### Description
transaction end moved up one level, and all those "lower level invocations" have been removed.

Solves #478