bugfix writeException wasnt displaying error message