Hangfire and memorystorage

I am using menorystorage with a windows service and it has happened to me several times that when I restart the service the scheduled process runs more than once, how can I clean what is scheduled in memorystorage when I start the service?