Clean-up existing resource properly if create_resource is called multiple times.