From my understanding you are getting an error while running your program. This error might be because you might be trying to open pool with gcp and the open again with parpool. It is not possible to open multiple pools one with gcp and one with parpool. So, I would advise you to close gcp pool like:
delete(gcp('nocreate'))