Return reject state when error occurred
Merge pull request #1 from lykling/dev

Merge `master` into `dev`