Fixed error with tmp~ files
Added disconnect method. Fixed Log out