added destroy method to servlet to change running state