Close the input on finish()