in a crit, if you're otb, you're no longer racing but rather just riding in circles. just get off the course so you're out of the way if/when the race laps you and go for a ride.
in a RR, if you're otb, might as well continue, just remember that you're no longer racing but again just riding so the rules of the road apply re: cars/intersections, etc., and if another field that is racing comes along, stay to the right so you're out of the way.
edit: there are no points in Cat 5.