OK, I'll implement right now.
Please review carefully because I know less about handling Exceptions in Homebrew.