Remy Maucherat
committed
on 23 Jan 14
Try to call onError if an error occurs during onClose.