Check to see if the handle is already closed in GC metamethods

Fixes #3
Fix typo in example code