Changed a number of exceptions to log properly.

New pull request to test codeship