Added transactional to client writes.

Let's see if number of connections resets properly