Ensure jsobject is not released to soon.