Rescue active record exceptions.