fix another bug that fail to close phantomjs binary after resolveFinal