Fixed bug that closed terminal if file was not found