Close stdin when daemonizing