Cleanup and window cycling.