# When Go programs end

> Episode of [Go Time: Golang, Software Engineering](https://podistic.com/podcast/go-time-golang-software-engineering.md) · Published February 4, 2021 · Duration 57:39 · Episode 165, season 1

- **Listen on Podistic:** https://podistic.com/episode/when-go-programs-end
- **Audio:** https://op3.dev/e/https://cdn.changelog.com/uploads/gotime/165/go-time-165.mp3 (audio/mpeg)

## About this episode

Michael Knyszek from the Go team joins us to talk about what happens when a program ends. How are file handles cleaned up? When are deferred functions run, and when are they skipped entirely? Is there a way to terminate all running goroutines? Tune in to learn the answers to these questions and more!
