You can undo a closed tab in Safari for Mac

Accidentally shut down the wrong tab? ⌘+Z (Edit > Undo Close Tab) to the rescue.