# FileSystemWatcher Events Retries

**URL:** <https://discuss.hangfire.io/t/filesystemwatcher-events-retries/8366>\
**Category:** question\
**Tags:** aspnetcore\
**Created:** [April 9, 2021, 9:57am UTC](https://discuss.hangfire.io/t/filesystemwatcher-events-retries/8366 "2021-04-09T09:57:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BvDEV397](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/bvdev397/32/2509_2.png) [@BvDEV397](https://discuss.hangfire.io/u/BvDEV397)\
**Post date:** [April 9, 2021, 9:57am UTC](https://discuss.hangfire.io/t/filesystemwatcher-events-retries/8366/1 "2021-04-09T09:57:07Z")

</div>

Hi, I setup a file watcher that detects file creations and process them in the Event Handler. I noticed that when a Hangfire task fails it will retry 10 times but an event fails Hangfire.server will shutdown. How can i prevent the exception propagation upwards and prevents Hangfire.server from shutting down?

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/hangfire/original/2X/0/0ec2c30614bdff2f87f7d02947adef03712cc592.png) ![image](https://europe1.discourse-cdn.com/flex017/uploads/hangfire/original/2X/b/b89d3f52c4df29aec7dccb34fb72c94a28abe31f.png)
