Properly configure Groovy for groovy project
Terminate server when cancelling run task