My preference would be to drop the main, roll it up nice and tight and lash it to the boat with the mainsheet. Then I'd see about getting back to shore under jib only.
Why not just drop the whole rig, mast, sails etc, wait for the storm to pass, then rerig the boat and sail home.