catch authorization required exception.
change to use nats on_error function.
Merge pull request #3 from X-Plat/Fix/Authorization_required

catch authorization required exception.