LILY 350: catch all errors. Changed auth_ok flag