Fixed bug: exit not trapped. Supressed some debugging outputs.
Move crypto:start() to correct place.
Move crypto:start() to correct place. Supressed some debugging outputs.
Adjusted code order.
Trap flow_end termination correctly.
Added a FIXME.
Follow the OTP rules.
Process upstream close correctly.