Return from bash functions

Do not exit the script when the process ends.

This fixes https://github.com/travis-ci/travis-ci/issues/2064