Fixed remove_on_fail implementation

We need to clone session to be sure that the session will be used only
in one transaction simultaneously
Merge pull request #555 from iderikon/master

Fixed remove_on_fail implementation