Handle error when resource is removed
Merge pull request #5 from Hikariii/master

Handle error when resource is removed