/controllers/, /resources/ & /views/pages/: added error handling (can still cause problems if error itself generates an error)