Use set +e on Jenkins to allow the script to continue after an error
into its clean-up phase.

Added a script to allow an unused port to be found.