Document error handling and timeout