Make sure all pending communications are done on all ranks before closing the window. This way it will be safe to close the endpoints when closing the component. (picked from master b8e1af6) Signed-off-by: Yossi Itigin <yosefe@mellanox.com>