so for the last 2 days I've been using my mac and every time I close a program it restarts and give's me a message that it closed because of an error tried different solutions I found online neither worked any help you can give me
Reinstall OS X, look if it happens again, or if you have a time machine backup go back a week or so and look if it solves the problem, back up before though.