This is disabled by default, and enabled in settings. Also there a option to automatic restore opened terminals.