added error rescues to all AWS endpoints