Added auto close browser script
Added windows close on logout