Fix closing issues and readyness on AS