added __destruct function to Portal class
cleaned up pdo attributes
  uses a php warning in debug mode; exception in production mode

git-svn-id: http://prositemanager.googlecode.com/svn/trunk@51 e374cdb8-7ee8-0d77-fd1e-c554042f9154