ethdev: allow close function to return an error