Make sure extension objects are cleaned up.