Bahadur Shah was exiled to Rangoon and died in 1862.