Add unlikely branches to speed-up shutdow