Fix possible deadlock on deleting slave/terminating instance