Breaking this out from https://github.com/Project-OSRM/osrm-backend/issues/2113
Both exits here are called the first exit.