Added check for the server attempting to start on a port that is already in use and therefore unavailable.