fixes catching exception of enQueue call
Merge pull request #1358 from gurbuzali/enqueue-call/2.x

fixes catching exception of enQueue call