properly display exception in Application