Hi Thomas,
seems that the problem that you are facing is due to the fact that the Radio Link Failure (RLF) is not implemented yet in LTE. So it may happen this kind of "unexpected" behavior when handover is used.
So, there are couple of options that you could do:
1) Implement RLF procedure, this would be very welcome by ns-3 community, many people need it. Some advices by Nicola Baldo how to do it you may find in this thread:
https://groups.google.com/d/msg/ns-3-users/xShe_Hqy6r4/qcytuSEvsvAJ2) Follow the advices from documentation for how to overcome this issue:
https://www.nsnam.org/docs/models/html/lte-user.html#tuning-simulation-with-handover3) Some another possible workaround by increasing the timer settings...
Please let us know whether this helps you solve the issue.
Cheers,
Biljana
he context is released is ok, and it should happen in the cases when signal strength becomes low, but the problem is that there is no RLF procedure that will