Crash nginx process if app server crashes

Check return value of app server command.