close input of subprocess once stdin has been sent to it