Common input error cleanup