Add shutdown method.

Signed-off-by: crynobone <crynobone@gmail.com>
[#145] Implement auto Session::flash() for messages.

Signed-off-by: crynobone <crynobone@gmail.com>