Changed @port to initialize to nil