Fix rubocop's SignalException warnings.