Fixed HTTP 500 on fatal error