correction to the cluser pub sub  ensure that the program does not stop