Some phenothiazines can be made that way. I don't know if it's going to work in this case, but you can close the ring as shown below (US 4879288) or Schmutz, J., Künzle, F., Hunziker, F. and Bürki, A. (1965), Neue Synthese von Lactamen der Dibenz[b,f]-1,4-thiazepin-, -oxazepin und Dibenz[b, e]-azepin-Reihe. 4. Mitteilung über siebengliedrige Heterocyclen. HCA, 48: 336–347. doi: 10.1002/hlca.19650480212