close block when workflow is completed