Fix handling package removal errors
Support removing specific package version