(GH-489) only throw error if port is passed and if this is in LISTENING state