Add quit & relaunch

Credits https://gist.github.com/kud/8280089