added exit alert