You can still work him and regain control from the ground before mounting up again. If you don't feel safe, don't take the risk of staying mounted.
[header] How to react when your horse rears [title] Decide whether or not to get off. [step] When your horse rears, it can be very dangerous. If you are not confident that you will be able to regain control while mounted, get off quickly.