Main window initialising, close if multiple instance