That prevents the error message from coming up, but the program closes after a half-second of being open.