Fix excpetions not printing properly