Handle event listeners in a separate process