Fix timing of neo4j stop; fix IP address logic