Your work visa will not be cancelled before cancelling the dependant's visa.