[pymorse] wait for publisher when closing

fix #567