Make robot stop after reading file