The suspension or revocation of a license or a company registration as in this chapter provided may also be ordered in any action otherwise proper in any court involving the licensee’s or a company’s performance of a legal obligation as a licensee or registrant under this chapter.