added a timer to check for rospy.is_shutdown so the node can be stopped with ctrl+c