Is there anyway to close the movie w/o closing Flash?

If my program has an infinite loop, I have to open task manager and close the Flash IDE, then reopen it. Is there a way to close the program and un-crash Flash?