Add --max-pending-finished-sessions command line option