set the error callback to a nice default in case nobody set an error callback and an error happens