Rollback session on Integrity check exception

Rollback session correctly to allow adding of new, valid, entries. Related to issue #158