afterwards , he understood how the duties of soldiering came to be , but the nights were filled with dread from the vexation of endless dreaming and the dying that haunted him when his eyes were closed .