Change exit logic