Try to notify the host application of errors through the close method.