close input buffer