ensure that the frontend script gets stopped