Capturing and releasing events in NS4