Blocks the quit of the last page from GUI

Signed-off-by: Tommaso Visconti <tommaso.visconti@gmail.com>