fixed stoponerror option not stopping grunt task

grunt task wasn't exiting if errors were found and stoponerror was set - would continue running. hardfail wasn't set to true in the case where output was true.