Resettable writers

The idea here is to have an option to monitor how long does each single write take, and have a threshold for what's considered too long. When too long write happens the file which we are currently writing to is closed and new one is created.