Made code more robust if an existing Named piper server was running