More robust error handling when connecting to neo4j through a reverse proxy such as Nginx.