fixed bug in exceptionhandler to show the entire stack of error in console