transaction callback added

Added transaction callback shortcut . Related with [this](https://github.com/yiisoft/yii2/issues/3384) issue 
Now I see the problem with using Exception above. The name is already in use so it may conflict.