Fixed close event handler so it logs the remoteAddress, reasonCode and description correctly.