* Add close_fds option to spawn. * Ignore errors when closing file descriptors. * Other improvements.