diff --git a/tasks/e2e.sh b/tasks/e2e.sh
index 8a4a1ffa3641fdf36b6d76d31a1aba29f7669f69..198de1d2067427f6933cd8001425c4f738e0fe61 100755
--- a/tasks/e2e.sh
+++ b/tasks/e2e.sh
@@ -16,13 +16,14 @@ function cleanup {
 
 function handle_error {
   echo "$(basename $0): \033[31mERROR!\033[m An error was encountered executing \033[36mline $1\033[m."
-  handle_exit
+  cleanup
+  echo 'Exiting with error.'
   exit 1
 }
 
 function handle_exit {
   cleanup
-  echo 'Exiting.'
+  echo 'Exiting without error.'
   exit
 }