The consequences of a nearby supernova on the early solar system