Add method to quit frontend script