void (@NotNull final ThrowableRunnable<?> command, @NotNull final RemoteOperationCallback callback) { execute(() -> { try { command.run(); } catch (Throwable e) { LOG.info(e); @NlsSafe String message = Optional.ofNullable(e.getMessage()).orElseGet(() -> e.getClass().getName()); callback.errorOccurred(message); } }); }