Closing streams on up-/downloads so that a failure to do so will keep statistics correct (FTPSERVER-269)