Advanced inventory general cleanup.
Make advanced inventory bail out once you run out of turns and re-enter the menu seamlessly.