Fixing destroy function

Fixing the destroy function.
Fixing sending multiple headers from multiple calls to callback.
Fixing fs calls to undefined outputfile var, using this._filename instead.