finish protected mode