Implement the goodbye stuff