Fixed app freezes on attach new tab/close exists tab
Added excepthook