Fixed bug where the final session would never be removed on success, leading to duplicates.