I hated that when it happened to me. Take the crank arms off, wipe away any gunk, and put them back on. That's what I did (my cranks were loose). As far as the chain clicking, is your chainring straight, even a slight warp can cause clicking which means your chain could pop off. Try the crank thing and tell me what happens.