Improved previous fix.
Improved error output when port is already in use.