[FaceRest] Avoid referring dangling pointer of ResourceHandler

I've added reference count to ResourceHandler to fix this issue.

github issue #237