bottle exception report middleware and plugin