Remove _base from repo.
Store actual port used. Fixes error message when port is already in use.