Problems with game pad game crash

i used to play with out any problem and now every time i try to play my xbox controller just radomly disconets and when i turn it back on the game crash and forces me to close sesion in my computer in order to be able to make it react.please help.