get script stopped by application