Add exception for busy port.
Add unit tests.