Add destroy method to input.