Updated error handling of lsow.