added funtion to post quit message