654 GHz Continuum and C18O(6-5) Observations of G240.31+0.07 with the Submillimeter Array