core: added auto redirect after app run & close