Fixes porcess exit script