Potentially removed bad code

but can't figure out why it would close the terminal window.