Fix multiple instances of processes after relogin