Remove trace_patterns at the end of the session mk II

Previous commit ammended with updates suggested by @klajo