Format sources.
Fix shutown sequence.