Success & Failure of build is now properly handeled and written und output