What Apriliaman said. If you and your bike is relatively OK, get back out on track IF you want. Some people will just sit out the rest of the race even though they and their bike are ok. A personal thing for some. But the corner workers should give the bike a quick "teching" if possible. If they cant get to you, you do it yourself. Basically make sure you have front brakes, all controls still are there and it steers. You have to use common sense and be honest with yourself if you pick it up yourself. The licensing school should cover this anyways.
When I cornerworked we had a guy crash on the warmup lap and tried to get back out there. Had to stop him and tell him his race was over since he had NO front brake reservoir. He never noticed it until I pointed it out to him. Could had been real bad if he got back out without it.
And whatever you do pay attention to the cornerworkers flags especially if they have the yellow with red stripes showing it to you and pointing it at you. Get off the race line and proceeed to stop at the next manned cornerstation. How many times we've had racers IGNORE a debris flag wave off only to oil the track down for everyone and losing valuable time cleaning up the oil.