Man sentenced to 25 years for standoff