Fixed some error reporting. Also. Shutdowns need to be delayed to give ROS a chance to shut down cleanly.