Dynamic action of the Sec machinery during initiation, protein translocation and termination