target remote: Don't rely on immediate_quit (introduce quit handlers)