Call init and finalize in the workers and in the finish function of setup_chan