Fix for bug #948. Other problem is that frontend session was terminated