Added an accessor to query whether or not the port is open.