Recovers gracefully from errors