Ton of Problems with Repetier Host

Hey guys, need some help.

My arduino keep disconnecting from repetier host during the middle of a job or when manually jogging. It will work fine at startup but then some time later it just stopps working and repetier host displays a “waiting for command” error. Whats going on?

Did unplugging the endstops work?