Allowed MonocularSLAM to close even with qt windows