Exception handler available before environment setup