synchronize in shutdown method