fixed  hhvm unregister handler during destruction