Machine rblandomly unresponsive

The gremlin is highly likely to a be a wiring issue so check your wiring. There are tons of posts here on the forum about connection problems.

Have you installed some sort of strain relief on the connectors, particularly those on the end of the X carriage? These connectors have a very hard life otherwise and are prone to failure.