sentence: samuel thomas hauser , a former territorial governor of the state of montana from 1885 to 1887 , enjoyed a lengthy career in bank , mining , railroads , ranch , and smelting , but encountered a series of financial setbacks after the panic of 1893 which nearly ruined him financially .