catch(Exception e){
System.out.println("无法关闭数据库");
把这句移进它前面的大括号中,让它bu捕捉finally中的异常!