Added documentation for handling failure