Change IllArgEx to IllegalStateExcecption

Now in accordance to the JavaDoc
Set ContextClassLoader on ShutdownThread
Let Application handle its own shutdown

Module used to do some parts of an Application shutdown (removing
executed FunctionBlocks from the ModuleBlockManager, removing the
Application from the list of running Applications). This is now
done by Application itself.

Module.stopApplication(ApplicationID) has been removed in turn,
use Application.shutdown() instead.

Extract a method from Application.shutdown()

Let Application remove FunctionBlocks on shutdown

Module used to remove FunctionBlocks from the ModuleBlockManager on
shutdown instead of Application doing it itself

Make Application remove itself from Module

Further work to remove Module.stopApplication: Application.shutdown()
now calls a Module.removeApplication so that it get removed from the
list of running Applications.

Remove Module.stopApplication(ApplicationID)

Application.shutdown() is used instead