Add checks for object deleting and fix bug in container delete.
Add check for container deletion.
Merge pull request #27 from git-harry/master

Add checks for object deleting and fix bug in container delete.