Fix disconnect() call, sender can never be nullptr
This fixes my commit 3d4ebc67.
GIT_SILENT
Disconnect first, then call logout()
This makes more sense to me, because if the process state changes somewhere between entering the if block and calling logout(), the connection which was made in the constructor, might call logout() again.
Edited by Ahmad Samir