reset error callback after loading a connection from persistent cache in order to avoid segfault