Solution for 64bit exiting issue.

64bit build seems to not want to use previous methods used in 32bit. This fixes it, as well as clearing terminal before displaying last messages.