fix nullpointer in closeQuietly of preparedstatemetn