need to capture EXIT also