Added WriteStream in connect.after.each event