Free context IDs after the contexts ended. Also, more specific output.