The right time to sell a stock whose price is driven by Markovian noise