IPC: code gardening
IPC: find last sessionId