Don't leak fds if open_random fails