Close stdin before server starts.