maybe exit with an error code here too?