FWIW, on my a540, the following seems to work:
call_event_proc('RegisterShootSeqEvent')
call_event_proc('StoreLensForShutDown')
You only have to call the Register function once.
I didn't test this extensively. I would suggest making sure you are in play mode first, at the minimum. As always when calling eventprocs that manipulate hardware, use at your own risk.