improved InvalidProcessStateException: docu and getter for invalid state

Signed-off-by: Christian Lüthold <biocodr@gmail.com>