Fix false error detection on resource ctor and dtor
Merge pull request #5 from cybozu/fix-false-error-detection

Fix false error detection on resource ctor and dtor