modules/http_client: catch callback errors