A returned Promise may be rejected with AbortError

When a user is going to close the page, pending Promise may be
rejected with AbortError.
Merge pull request #93 from toyoshim/abort_error

A returned Promise may be rejected with AbortError