Removed local file descriptor variable from openPort()