Added a handler for the permission denied exception, displays a simple error message.