What program are you using to record it with?

Make sure you aren't monitoring the channel you are playing through, otherwise the recording will always feedback.