Killed program after clicking yay button but it does store in mySQL