bugfix:

if daemon got down hard, and was not able to delete its pidfile, the new daemon append its pidfile. now the pid file is cleared before writing the new pid into it.