fix(server/session): Use finish event instead of end as it's a writable stream.