Added error logging for exceptions

OK. Github login issue is realy annoying #233 and #188 . Let's debug and fix it! :+1: