Added optional openflags to async connection constructor.