Added onClose() and onError() events on the ddp client