Added handleException(e) method to Context