Detect and report error when port used