added shutdown flag to halt program on user input EOF. Useful for running test files.