Moved the global TTL to 5 seconds (for testing).

added a try catch just to make sure the response is parsable