It could be related to having Module Requestor installed, the ghost I deconstructed was a ghost of a furnace with active module requests on it.
The mod Sam's Trains (ALPHA) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event SamTrain::on_pre_ghost_deconstructed (ID 91)
Entity is not ghost.
stack traceback:
__SamTrain__/control.lua:103: in function <__SamTrain__/control.lua:100>
stack traceback:
[C]: in function '__index'
__SamTrain__/control.lua:103: in function <__SamTrain__/control.lua:100>