$.magnificPopup.close() shouldn't throw an exception if theres no instance