Fix GCC warnings
Fix confused task aborting