raise error if port is in use

rather than swallow the error and return another available port.

Change-Id: I8c27a52723fc451ec3b851a2d5f5c92137c481e2
Merge "raise error if port is in use"