removing unused variables. stick to underscore-less naming conventions. correct debug logs, log contextual errors.

removing unused variables. 
stick to underscore-less naming conventions. 
correct debug logs, log contextual errors.
Is there any reason as to why we're not logging the exception here