Please don't use ampersand in the moose command
Created by: yurivict
cd /usr/local/lib/moose && python mgui.py &
The command should last until the process is done. This isn't a commonly expected behavior when the UI command exits immediately while the process still runs.