Fix null pointer exception on context destroying.
Merge pull request #24 from henning-gerhardt/activemq-null-pointer-exception-on-shutdown-fix

Fix null pointer exception on context destroying.