Pull Request, fix goodbye function