reintroduce closePortfolio with error handling for Event state with touch = false