fix termination for FLP2EPN examples

This commit fixes the termination issues for the examples FLP2EPN and FLP2EPN-dynamic.