correctly handle service's exception