Fixed issue with the daemon's session deletion.