Minor improvement to port open checker