Immediately set the matplotlib backend to Agg in PrimerApp module.
Hopefully this will prevent using any other backend which may
require X11 or try to display plot.