Using finally instead of success callback on removeFile to write Logs