Initiation propagation and termination of elastodynamic ruptures associated with segmentation of faults and shaking hazard