Improved teardown for HHVM