Implement global end environment 'before' and 'after' hooks