diff --git a/lib/transports/file.js b/lib/transports/file.js
index <HASH>..<HASH> 100644
--- a/lib/transports/file.js
+++ b/lib/transports/file.js
@@ -75,7 +75,7 @@ file.prototype.set = function(data, limit, offset, callback){
     // close the file
     self.writeStream.write("]\r\n");
     setTimeout(function(){
-      try{ self.writeStream.close(); }catch(e){}
+      try{ self.writeStream.end(); }catch(e){}
       callback(error, data.length);
     }, 200);
   }else{
Update file.js

should be end not close