Added events to ObjectSerializeStream, close, error, drain and once function