Implement some file locking for data and startTime file maybe use https://github.com/nette/safe-stream or something simpler