Where is your ProgramProgram class? Does IsActiveIsActive continue to return
true
true
? Have you tried stepping through your application with the debugger - that's the first thing I'd do here, to see which lines of code are running and then where it stops.