Changed WriteMode to be an enum class
Updated nonblocking kinetic connection to support PersistMode