exit (and bye) implementation

this code should be compiled to run properly. parent pid is `go` itself when you run `go build`.