Renenabling register_shutdown_function