[NX-153] Automatically handle InvalidConfigurationException

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>