I have a very basic one form program. I am trying to make it exit if a certain condition is true. Right now I am using the following:

If CountDown > 5 then Unload me



CountDown is an Integer variable.
When the statement is true, I keep getting the message, "Run-time error '364': Object was Unloaded"
Is there any problem with using Unload Me in an IF statement?