extracted portManager to catch interrupts for all of the ports