do not add shutdown hook until application has been succesfully created