Global startup handler and use logging instead of prints