Dropping code now and then for some reason

My router seems to drop code sometimes and the cutter shifts and cuts where there is no material. It is Hobby Mach4 software. It runs on a laptop so if there is a slight power surge it should still be on path I would think. Thank you for any ideas everyone.