Added fail gracefully option.
Made HTTP client timeout configurable.