The Johnstone's Paint Trophy second round tie ended all square at 3-3 but the home side knocked Town out of the competition with a 4-2 win in a penalty shoot-out.
"The tie went to penalties because we defended absolutely abysmally for their second and third goals," the Town boss said.
"Two more individual errors have cost us dearly."