Right-click it in the taskbar and choose "Quit". Restart it when you finish playing.
Folding uses all the SPARE cycles of your CPU. It sets itself at lowest priority so that it doesn't take anything away from what you are doing... but BF2 still doesn't like to share.