User logger rather than puts.
Rescue with StandardError rather than Exception.
Merge pull request #644 from toch/fix-code-smells

Fix code smells