refs #1627 : bugfix - DBMS unbind timing is changed.

 - Session write / close work after standard PHP shutdown (from PHP 5.4). However, POD unbinds database connection right after screen printing is finished. Therefore session write returns warning, and did not work properly.