Program Closes Immediately After Opening Windows 10