call stop script instead of duplicating the function