function name sounds weird. Can we just call it _showErrorAndCleanUp? since it is easy to understand the purpose of silent flag, there is  no need to mention it in function name.

Also another nit: Please have an empty line before this function.