1. -Fix exit crash