Thanks for the information about your washer model RTW4340SQ0, Sorry you are having a problem, I will be glad to assist.
Based on your description of the sound being made (clicking) I suspect that the wiring harness on the motor may be loose. Check the plastic connector and the wires in both sides for loose or even burnt spades and wires. A loose connection will cause the motor to cut in and out while in the spin cycle thus causing banging and clicking.
If the harness is damaged it may need replacing. Here is a link to Sears Parts Direct.
I hope this helps if you need additional assistance please reply with added details and I will be happy to respond.
If you get to the point where you need to have a service technician diagnose and repair this failure, you can schedule service through this link:
Sears Home Services