Numerous stability improvements to run_screen