Exception handling in all pages