Fix word wrapping and new lines in bug details
Fix thrown exception
Add better logging for exceptions