Cancel http requests when terminating