fixing gradle build
backgroundtask catches and logs execeptions