dispose engine after fork