Packaged images have the following cycle:
If possible, it's usually best to have your server application run in the starting process. But startup code commonly forks a new process to do the server processing. The starting process then resumes execution and exits the image.
The solution is to terminate the starting process after starting the server. This is done by setting the startup code as follows:
foo bar. Processor activeProcess basicTerminate