(#2639) - make sure we do no more writes after replication is over

covers the edge case where we close the database between the get and the put for the check point