Move flush logic into close
Move flush logic into close

klynton/freight,klynton/freight,jkimbo/freight,getsentry/freight,rshk/freight,getsentry/freight,jkimbo/freight,jkimbo/freight,rshk/freight,getsentry/freight,rshk/freight,getsentry/freight,rshk/freight,getsentry/freight,jkimbo/freight,klynton/freight,klynton/freight