[ZEPPELIN-1984] Zeppelin Server doesn't catch all exceptions when launching interpreter.sh
[ZEPPELIN-1984] Zeppelin Server doesn't catch all exceptions when launching interpreter.sh

https://issues.apache.org/jira/browse/ZEPPELIN-1984

> DEBUG [2017-01-20 13:56:37,688] ({Exec Stream Pumper} RemoteInterpreterManagedProcess.java[processLine]:189) - /opt/zeppelin/zeppelin-active/bin/interpreter.sh: line 207: return: can only `return' from a function or sourced script
>  INFO [2017-01-20 13:56:37,690] ({Exec Default Executor} RemoteInterpreterManagedProcess.java[onProcessComplete]:164) - Interpreter process exited 0

So `return 1` outside of function is not correct and gets ignored by shell interpreters, also it causes
Zeppelin to not catch situations when interpreter hasn't started, as shown in ZEPPELIN-1984.
As you can see Zeppelin got exit status of interpreter.sh as 0 when it had to be 1 (error). Zeppelin then starts a loop to try to connect interpreter process, and fails half a minute later with `connection refused`

### What is this PR for?
Fix for https://issues.apache.org/jira/browse/ZEPPELIN-1984

### What type of PR is it?
Bug Fix

### Todos
* [ ] - Task

### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1984

### How should this be tested?
On example of Spark interpreter, remove keytab file and keep --keytab reference to it in SPARK_SUBMIT_OPTIONS. Try to use Spark interpreter. spark-submit will fail with `Exception in thread "main" org.apache.spark.SparkException: Keytab file: /home/someuser/.kt does not exist` but Zeppelin (around [RemoteInterpreterManagedProcess.java](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterManagedProcess.java#L121) ) wouldn't capture this problem (or many other problems starting interpreter process [as indicated here](https://issues.apache.org/jira/browse/ZEPPELIN-1984?focusedCommentId=15831000&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15831000) )

This fix for ZEPPELIN-1984 would allow for error to be captured by RemoteInterpreterManagedProcess.java.

A future improvement could be made, to carry forward exception from interpreter to RemoteInterpreterManagedProcess.java so end user could clearly see what's the problem, not just that the interpreter could not be started.

### Questions:
* Does the licenses files need update?
No
* Is there breaking changes for older versions?
No
* Does this needs documentation?
No

Author: Ruslan Dautkhanov <Tagar@users.noreply.github.com>

Closes #1921 from Tagar/patch-1 and squashes the following commits:

6624c79 [Ruslan Dautkhanov] fix for ZEPPELIN-1984

jongyoul/zeppelin,1ambda/zeppelin,astroshim/zeppelin,tinkoff-dwh/zeppelin,joroKr21/incubator-zeppelin,lresende/incubator-zeppelin,sravan-s/zeppelin,apache/zeppelin,datalayer/zeppelin,r-kamath/zeppelin,astroshim/zeppelin,prabhjyotsingh/incubator-zeppelin,sctincman/zeppelin,minahlee/incubator-zeppelin,zjffdu/zeppelin,zjffdu/zeppelin,openthings/zeppelin,anthonycorbacho/incubator-zeppelin,sohaibiftikhar/zeppelin,sergeymazin/zeppelin,AlexanderShoshin/zeppelin,sergeymazin/zeppelin,rconline/zeppelin,lresende/incubator-zeppelin,joroKr21/incubator-zeppelin,radicalbit/incubator-zeppelin,tzolov/incubator-zeppelin,sctincman/zeppelin,chilang/zeppelin,cfries/zeppelin,herval/zeppelin,SarunasG/zeppelin-oidc,AlexanderShoshin/zeppelin,Leemoonsoo/incubator-zeppelin,tinkoff-dwh/zeppelin,pellmont/zeppelin,1ambda/zeppelin,tinkoff-dwh/zeppelin,datalayer/zeppelin-datalayer,pravin-dsilva/zeppelin,hammertank/zeppelin,AlexanderShoshin/zeppelin,prabhjyotsingh/zeppelin,radicalbit/incubator-zeppelin,r-kamath/incubator-zeppelin,hkropp/incubator-zeppelin,cfries/zeppelin,volumeint/zeppelin,jongyoul/incubator-zeppelin,Nova-Boy/zeppelin,herval/zeppelin,cquptEthan/incubator-zeppelin,mwkang/zeppelin,apache/incubator-zeppelin,jongyoul/zeppelin,Leemoonsoo/zeppelin,volumeint/zeppelin,astroshim/zeppelin,lresende/incubator-zeppelin,minahlee/zeppelin,radicalbit/incubator-zeppelin,cfries/zeppelin,minahlee/incubator-zeppelin,Leemoonsoo/zeppelin,prabhjyotsingh/zeppelin,lresende/incubator-zeppelin,pellmont/zeppelin,YuanGunGun/zeppelin,openthings/zeppelin,doanduyhai/incubator-zeppelin,joroKr21/incubator-zeppelin,sergeymazin/zeppelin,zjffdu/zeppelin,AlexanderShoshin/zeppelin,vipul1409/zeppelin,zjffdu/zeppelin,soralee/zeppelin,minahlee/incubator-zeppelin,jongyoul/incubator-zeppelin,sctincman/zeppelin,sctincman/zeppelin,soralee/zeppelin,herval/zeppelin,zetaris/zeppelin,hkropp/incubator-zeppelin,Leemoonsoo/zeppelin,sergeymazin/zeppelin,VipinRathor/zeppelin,r-kamath/zeppelin,hammertank/zeppelin,namanmishra91/zeppelin,doanduyhai/incubator-zeppelin,zetaris/zeppelin,pellmont/zeppelin,cquptEthan/incubator-zeppelin,Leemoonsoo/incubator-zeppelin,volumeint/zeppelin,volumeint/zeppelin,namanmishra91/zeppelin,yu74n/zeppelin,prabhjyotsingh/zeppelin,r-kamath/incubator-zeppelin,vipul1409/zeppelin,cquptEthan/incubator-zeppelin,prabhjyotsingh/zeppelin,fogbeam/zeppelin_mirror,yu74n/zeppelin,rconline/zeppelin,jongyoul/incubator-zeppelin,apache/zeppelin,prabhjyotsingh/zeppelin,mwkang/zeppelin,cquptEthan/incubator-zeppelin,fogbeam/zeppelin_mirror,Nova-Boy/zeppelin,VipinRathor/zeppelin,sravan-s/zeppelin,apache/zeppelin,fogbeam/zeppelin_mirror,benoyantony/zeppelin,wary/zeppelin,YuanGunGun/zeppelin,datalayer/zeppelin,herval/zeppelin,hkropp/incubator-zeppelin,chilang/zeppelin,zjffdu/zeppelin,datalayer/zeppelin-datalayer,sergeymazin/zeppelin,tzolov/incubator-zeppelin,sergeymazin/zeppelin,namanmishra91/zeppelin,astroshim/zeppelin,pravin-dsilva/zeppelin,sohaibiftikhar/zeppelin,hammertank/zeppelin,yu74n/zeppelin,cquptEthan/incubator-zeppelin,datalayer/zeppelin-datalayer,vipul1409/zeppelin,openthings/zeppelin,jongyoul/incubator-zeppelin,tinkoff-dwh/zeppelin,mwkang/zeppelin,yu74n/zeppelin,benoyantony/zeppelin,sctincman/zeppelin,minahlee/incubator-zeppelin,Nova-Boy/zeppelin,joroKr21/incubator-zeppelin,Leemoonsoo/zeppelin,cfries/zeppelin,sohaibiftikhar/zeppelin,anthonycorbacho/incubator-zeppelin,r-kamath/incubator-zeppelin,sravan-s/zeppelin,vrlo/zeppelin,astroshim/incubator-zeppelin,Leemoonsoo/incubator-zeppelin,astroshim/incubator-zeppelin,doanduyhai/incubator-zeppelin,sravan-s/zeppelin,Leemoonsoo/zeppelin,SarunasG/zeppelin-oidc,wary/zeppelin,sohaibiftikhar/zeppelin,apache/zeppelin,volumeint/zeppelin,cquptEthan/incubator-zeppelin,Leemoonsoo/zeppelin,r-kamath/zeppelin,apache/incubator-zeppelin,pravin-dsilva/zeppelin,1ambda/zeppelin,apache/zeppelin,namanmishra91/zeppelin,lresende/incubator-zeppelin,apache/incubator-zeppelin,pravin-dsilva/zeppelin,1ambda/zeppelin,benoyantony/zeppelin,hkropp/incubator-zeppelin,astroshim/zeppelin,zetaris/zeppelin,vipul1409/zeppelin,namanmishra91/zeppelin,pellmont/zeppelin,fogbeam/zeppelin_mirror,cquptEthan/incubator-zeppelin,chilang/zeppelin,jongyoul/incubator-zeppelin,jongyoul/zeppelin,anthonycorbacho/incubator-zeppelin,tzolov/incubator-zeppelin,sohaibiftikhar/zeppelin,pellmont/zeppelin,YuanGunGun/zeppelin,minahlee/zeppelin,zjffdu/zeppelin,karuppayya/zeppelin,karuppayya/zeppelin,anthonycorbacho/incubator-zeppelin,Leemoonsoo/incubator-zeppelin,joroKr21/incubator-zeppelin,wary/zeppelin,hammertank/zeppelin,minahlee/zeppelin,Leemoonsoo/incubator-zeppelin,minahlee/incubator-zeppelin,YuanGunGun/zeppelin,lresende/incubator-zeppelin,sravan-s/zeppelin,soralee/zeppelin,SachinJanani/zeppelin,joroKr21/incubator-zeppelin,Nova-Boy/zeppelin,fogbeam/zeppelin_mirror,tinkoff-dwh/zeppelin,herval/zeppelin,Leemoonsoo/incubator-zeppelin,radicalbit/incubator-zeppelin,volumeint/zeppelin,radicalbit/incubator-zeppelin,lresende/incubator-zeppelin,Leemoonsoo/zeppelin,astroshim/zeppelin,r-kamath/zeppelin,astroshim/incubator-zeppelin,astroshim/incubator-zeppelin,sctincman/zeppelin,astroshim/zeppelin,prabhjyotsingh/incubator-zeppelin,pravin-dsilva/zeppelin,VipinRathor/zeppelin,Nova-Boy/zeppelin,cfries/zeppelin,SarunasG/zeppelin-oidc,datalayer/zeppelin,mwkang/zeppelin,SachinJanani/zeppelin,openthings/zeppelin,karuppayya/zeppelin,pravin-dsilva/zeppelin,rconline/zeppelin,pravin-dsilva/zeppelin,sravan-s/zeppelin,herval/zeppelin,pellmont/zeppelin,SachinJanani/zeppelin,doanduyhai/incubator-zeppelin,openthings/zeppelin,SachinJanani/zeppelin,1ambda/zeppelin,vrlo/zeppelin,1ambda/zeppelin,prabhjyotsingh/incubator-zeppelin,Nova-Boy/zeppelin,openthings/zeppelin,minahlee/zeppelin,rconline/zeppelin,VipinRathor/zeppelin,SarunasG/zeppelin-oidc,tzolov/incubator-zeppelin,wary/zeppelin,AlexanderShoshin/zeppelin,cfries/zeppelin,karuppayya/zeppelin,prabhjyotsingh/incubator-zeppelin,volumeint/zeppelin,datalayer/zeppelin-datalayer,sravan-s/zeppelin,openthings/zeppelin,YuanGunGun/zeppelin,jongyoul/zeppelin,chilang/zeppelin,r-kamath/zeppelin,apache/incubator-zeppelin,datalayer/zeppelin,VipinRathor/zeppelin,YuanGunGun/zeppelin,vrlo/zeppelin,SachinJanani/zeppelin,SarunasG/zeppelin-oidc,chilang/zeppelin,benoyantony/zeppelin,mwkang/zeppelin,mwkang/zeppelin,hkropp/incubator-zeppelin,SachinJanani/zeppelin,prabhjyotsingh/zeppelin,benoyantony/zeppelin,joroKr21/incubator-zeppelin,radicalbit/incubator-zeppelin,tzolov/incubator-zeppelin,AlexanderShoshin/zeppelin,zetaris/zeppelin,minahlee/zeppelin,doanduyhai/incubator-zeppelin,herval/zeppelin,r-kamath/incubator-zeppelin,hammertank/zeppelin,tzolov/incubator-zeppelin,yu74n/zeppelin,vrlo/zeppelin,apache/incubator-zeppelin,karuppayya/zeppelin,r-kamath/incubator-zeppelin,cfries/zeppelin,zjffdu/zeppelin,VipinRathor/zeppelin,r-kamath/incubator-zeppelin,anthonycorbacho/incubator-zeppelin,radicalbit/incubator-zeppelin,sohaibiftikhar/zeppelin,vrlo/zeppelin,vrlo/zeppelin,anthonycorbacho/incubator-zeppelin,datalayer/zeppelin,chilang/zeppelin,Leemoonsoo/zeppelin,tinkoff-dwh/zeppelin,minahlee/zeppelin,doanduyhai/incubator-zeppelin,SarunasG/zeppelin-oidc,zetaris/zeppelin,doanduyhai/incubator-zeppelin,wary/zeppelin,fogbeam/zeppelin_mirror,rconline/zeppelin,prabhjyotsingh/incubator-zeppelin,hkropp/incubator-zeppelin,mwkang/zeppelin,soralee/zeppelin,zetaris/zeppelin,astroshim/incubator-zeppelin,wary/zeppelin,apache/incubator-zeppelin,anthonycorbacho/incubator-zeppelin,prabhjyotsingh/zeppelin,SarunasG/zeppelin-oidc,sergeymazin/zeppelin,Nova-Boy/zeppelin,tinkoff-dwh/zeppelin,apache/zeppelin,r-kamath/zeppelin,benoyantony/zeppelin,vipul1409/zeppelin,soralee/zeppelin,rconline/zeppelin,sctincman/zeppelin,r-kamath/zeppelin,YuanGunGun/zeppelin,jongyoul/zeppelin,prabhjyotsingh/incubator-zeppelin,zetaris/zeppelin,sohaibiftikhar/zeppelin,soralee/zeppelin,soralee/zeppelin,vrlo/zeppelin,wary/zeppelin,karuppayya/zeppelin,datalayer/zeppelin,joroKr21/incubator-zeppelin,apache/zeppelin,vipul1409/zeppelin,namanmishra91/zeppelin,datalayer/zeppelin,1ambda/zeppelin,rconline/zeppelin,yu74n/zeppelin,r-kamath/incubator-zeppelin,chilang/zeppelin,AlexanderShoshin/zeppelin,minahlee/zeppelin,yu74n/zeppelin,hammertank/zeppelin,hammertank/zeppelin,pellmont/zeppelin,namanmishra91/zeppelin,vipul1409/zeppelin,VipinRathor/zeppelin,jongyoul/incubator-zeppelin,jongyoul/zeppelin,benoyantony/zeppelin,astroshim/incubator-zeppelin,jongyoul/zeppelin,fogbeam/zeppelin_mirror,karuppayya/zeppelin,SachinJanani/zeppelin