Should always close the form here since it apparently is not closed in advanced.