Generalized Optimal Stopping Problems and Financial Markets