catch all exceptions in the main plugin entry functions, as is done in the Support lib