Defensive Coding
Exception and Logging implementation.