Cleanup unwrap_jsmanaged.