Why this is the answer
The steps are in the annex to Resolution 349 of the Radio Regulations: stop the inadvertent transmission and contact the rescue coordination centre through a coast station or land earth station to cancel the alert (section 5); ships may also use any other means to inform the authorities (section 6). IMO guidance asks that a ship which has sent a false alert make every reasonable attempt to reach the rescue centre by any means to cancel it.
Calling in is in your interest. No action should normally be taken against a ship or mariner for reporting and cancelling a false distress alert, while an alert that was not cancelled is one of the cases an administration reports as an infringement (No. 32.10A). Registration matters here: the rescue centre identifies the beacon from its registered identity. In an exam this is done on a simulator or as a described procedure, because a real beacon must never be set off for training.