What shutdown activity have you configured? Because the error is telling you that it expects an object but that object is not there and hence the nullpointer exception.
The second error is telling you that it wants to use a port but that port is already used by another application. Did you try to run two mendix applications at the same time? That can be done but each model should use different port settings.
Regards,
Ronald