The generated packet delivery plot is now correctly closed