stop process if we failed to connect