Rescue StandardError.
Small refactors.