fdclose://123 will instruct mpv to close the file descriptor when it is no longer needed (usually when playing finishes).