close std file descriptors to detach subprocess, fix CRLF in PIDFILE
fix explode()[]