Close button doesn't automatically discard changes. Closes #935.