Apparatus and method for surgical suturing with thread management