Prevent removing required resources.