Ensuring request is finished after the JSON output.