Fixed state after login cancellation

Also temp file for patch is created after getting SVN process output.