Improved debugging messages and added exception to shut down robit.