[FIXED JENKINS-24966] Return failure when port is in use

Both 0 and 1 are used to indicate some kind of success (the latter when Jenkins doesn't need to be started because it was already running), so we need to return 2.