Changed capistrano version to 3.1 which has a hook deploy:failed