Probably fixes #348, add finalizer to cleanup phantomjs pid on GC.

 I'm unsure of exactly how to test, since it depends on GC.