Support Close Project when Saved checkbox

Fixed excluded processes not working.