Here's the thing...
... you've asked an incredibly vague question, and so to get a decent answer, you're going to need to supply some details.. what programs, what operating system are you running, what hardware, how to they close, what are you running them on, error messages, versions, is it recent, has it always done it?
otherwise the only answer we can give is, "because it does" and "maybe"