JFI-5: Added exception handling with Function interface
JFI-5: Added comments to ExceptionHandler to explain what it is for.