handle exceptions in bootstrapper