Fixed down error exiting program: