The problem of controlling a partially observed diffusion process is studied when the cost structure has the form of an integral up to the first exit time from a bounded domain. A modified Zakai equation and the associated separated control problem are derived. An existence result for an optimal wide sense admissible control rule is sketched by analogy with the known ‘finite time horizon’ case.