You don't actually have to use Mala's brute force method to close Project64. There are keyboard settings in the options of Project64 to change the ESC key to exit the program which means Project64 will close more gracefully. Seems like you must first remove it from its default task in Project64 before adding it to the Exit task. I'm using the beta version of Project64.