Adding better exception handling
Disable xdebug if enabled