Fixes #2300: callback not called in some cases when request is aborted
- Use finish package to detect aborted requests.