Wrap delete operations for subnet in a transaction

Fixes #5
Merge pull request #13 from tomoe/stable/grizzly-issue-5

Wrap delete operations for subnet in a transaction