Fix issue #7 - hanging operations after relogging

I've fixed the issue #7 by marking an operation that triggered relogging as finished after the user successfully reauthorizes the application. A case when relogging is unsuccessful is already correctly implemented.