I had the same type of problem some time back.
Installing opto's on the input lines fixed the problem for me.
Victor