catch ctrl c to not exit while getting pages of a topic