Add 'close()' method, called on garbage collection
Version 0.2
Fix check for null pointer
Version 0.2.1