Dynamic Programming and Error Estimates for Stochastic Control Problems with Maximum Cost