restore closed tabs. Fixes #416

Cheers to emdek, for your help.