Make sure that event handlers pass through environment variables.