Fix problem with close multitype protocols