Support flags in low-level ops

Just GetsRaw and Write support flags in this change.
Close connection on auth failure.
Don't allow connections from a closed pool

cbugg: bug-809