Failed downloads trigger exception (sequence contains more than one matching element)

First of all, thanks for the great program! However, I run into a small problem. When NZBDrone retries a failed download, the following exception occurs:

Message:
Error occurred while executing task NzbDrone.Core.Download.CheckForFinishedDownloadCommand: Sequence contains more than one matching element

Exception:
System.InvalidOperationException: Sequence contains more than one matching element
at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at NzbDrone.Core.Download.Clients.Nzbget.NzbgetProxy.RetryDownload(String id, NzbgetSettings settings) in m:\BuildAgent1\work\328d72309b633a8\src\NzbDrone.Core\Download\Clients\Nzbget\NzbgetProxy.cs:line 130
at NzbDrone.Core.Download.Clients.Nzbget.Nzbget.RetryDownload(String id) in m:\BuildAgent1\work\328d72309b633a8\src\NzbDrone.Core\Download\Clients\Nzbget\Nzbget.cs:line 219
at NzbDrone.Core.Download.FailedDownloadService.FailedDownloadForRecentRelease(IDownloadClient downloadClient, TrackedDownload trackedDownload, List1 matchingHistoryItems) in m:\BuildAgent1\work\328d72309b633a8\src\NzbDrone.Core\Download\FailedDownloadService.cs:line 180 at NzbDrone.Core.Download.FailedDownloadService.CheckForFailedItem(IDownloadClient downloadClient, TrackedDownload trackedDownload, List1 grabbedHistory, List1 failedHistory) in m:\BuildAgent1\work\328d72309b633a8\src\NzbDrone.Core\Download\FailedDownloadService.cs:line 108 at NzbDrone.Core.Download.DownloadTrackingService.ProcessTrackedDownloads() in m:\BuildAgent1\work\328d72309b633a8\src\NzbDrone.Core\Download\DownloadTrackingService.cs:line 201 at NzbDrone.Core.Download.DownloadTrackingService.Execute(CheckForFinishedDownloadCommand message) in m:\BuildAgent1\work\328d72309b633a8\src\NzbDrone.Core\Download\DownloadTrackingService.cs:line 220 at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand](Command command) in m:\BuildAgent1\work\328d72309b633a8\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 137 at NzbDrone.Core.Messaging.Commands.CommandExecutor.PublishCommand[TCommand](TCommand command) in m:\BuildAgent1\work\328d72309b633a8\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 48 at CallSite.Target(Closure , CallSite , CommandExecutor , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1) at CallSite.Target(Closure , CallSite , CommandExecutor , Object ) at NzbDrone.Core.Messaging.Commands.CommandExecutor.PublishCommand(String commandTypeName, Nullable1 lastExecutionTime) in m:\BuildAgent1\work\328d72309b633a8\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:line 61
at NzbDrone.Core.Jobs.Scheduler.ExecuteCommands() in m:\BuildAgent1\work\328d72309b633a8\src\NzbDrone.Core\Jobs\Scheduler.cs:line 46

NZBDrone is running on WinServer 2012R2, with NZBGet as download client. failing episode is Boardwalk.Empire.S05E05.720p.HDTV.x264-KILLERS

Any ideas I can try in resolving this?

Thanks for reporting this, I believe I found the issue and pushed a fix to develop.

Thanks Markus. Running NZBDrone as a windows service, how can I get the latest dev branch?