Perform better catching of exceptions
Removed line wrapping for log
Added checks to avoid null pointer exceptions when retrieving addresses