I don't think you need `try...catch` here, since `clearUserPref` shouldn't throw anymore, see: https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIPrefBranch#clearUserPref%28%29.
The same applies below.