Make sure after_build to run even if error occured

for clean up stuffs.