Remove attached profile on profile removal. Fix #38.