trying to catch external exits