in the last twenty-four hours , he had nearly been blown to bits by cannon fire , nearly drowned twice , been attacked by a tree , spent an entire night awake beneath a cannon , survived a boiler explosion on the essex , and been shot at by union soldiers .