fail gracefully