Process leaks

https://codio.myjetbrains.com/youtrack/issue/codio-4741