Add error listener to prevent fatals