Fix #198 handle pull shutdown synchronisation issues