Log some more errors.
Merge pull request #3 from cftp/feature/more-logging

Additional error logging. Thanks to Simon Wheatley.