Abe suspended Habeus Corpus.
So did Jeff Davis. But while Lincoln only put suspected bridge burners in prison, ol Jeff tended to hang them. But after the Confederates fulfilled Davis's instruction that the body should hang on the bridge for a few days as a warning to those who would defy the Confederate New Order, I'm sure the survivors could have what was left of the body.
Lincoln was dealing with an honorable opposing regime. He was fully justified in his actions.