class PrintStreamFailureLogger implements FailureHandler {

    @Override
    public void uncaughtException(Object actor, Object message, Throwable exception) {
        synchronized (out) {
            out.println("uncaught exception from " + actor + " when processing " + message);
            exception.printStackTrace(out);
        }
    }

    public  PrintStreamFailureLogger(PrintStream out);

}