Moved ping of server into a separate process