Clarify return codes for different phases

Fixes travis-ci/travis-ci#2642