Problem exiting from routine solved