Better worker restart strategy, slightly modified version of http://inaka.net/blog/2012/11/29/every-day-erlang/