Print the exception on thumbnail creation failure

Fixes #922
Merge pull request #923 from roman-yepishev/thumbnail-exception

Print the exception on thumbnail creation failure