- changes for checking data type.

- added comments for shutdown issue.