Fix replication session close which was actually trying to open a new session!!!
Merge pull request #247 from wajam/manu-fix-replication-session-close

Fix replication session close which was actually trying to open a new session!!!