Compatibility for older node versions where 'finish' is not emitted