expose closeInput as public method